package chai.ning.overload;

public class Animal {
	
	protected long divide( long a , long b ) {
		System.out.println( "int divisive( long , long )" );
		return a / b ; // 整除求商
	}
	
	// 这个方法不是重写了从Object继承的 equals(Object)方法
	// 而是与从Object继承的 equals(Object)方法构成重载
	public boolean equals( Animal a ) {
		System.out.println( "boolean equals( Animal )" );
		return this == a  ;
	}
	
	public static void main(String[] args) {
		Animal a = new Animal();
		Animal b = new Animal();
		a.equals( b );
	}

}
